package com.alingrad.android.froyoengine.util;

import javax.microedition.khronos.opengles.GL10;

public abstract class GLHelper {
	public static void setMatrix(GL10 gl, float x, float y, float z, float scaleX, 
			float scaleY, float rotation) {
		gl.glTranslatef(x, y, z);
		gl.glScalef(scaleX, scaleY, 1f);
		gl.glRotatef(rotation, 0, 0, 1);
	}
	
	public static void setColor(GL10 gl, GLColor color) {
		gl.glColor4f(color.getRed(), color.getGreen(), color.getBlue(), color.getAlpha());
	}
}
